/*
 * Synonym.java
 * 
 * Version Information
 * Date Mar 20, 2006
 *
 * Copyright (c) AmSoft Systems, 2006
 */

package net.amsoft.iservice.ilink.hibernate;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.HashSet;

import org.apache.log4j.Logger;

public class Synonym extends ILinkBaseClass {
	private static final Logger oLogger = Logger.getLogger(Synonym.class);

	private String sSynonym;

	private Subscriber oSubscriber;

	private Synonym oGlobalINumber;

	private Map oRedirectsMap = new HashMap();

	private Set oRedirectSet = new HashSet();

	public Synonym() {
	}

	public String getSynonym() {
		return this.sSynonym;
	}

	public void setSynonym(String synonym) {
		this.sSynonym = synonym;
	}

	public Subscriber getSubscriber() {
		return this.oSubscriber;
	}

	public void setSubscriber(Subscriber subscriber) {
		this.oSubscriber = subscriber;
	}

	public Synonym getGlobalINumber() {
		return this.oGlobalINumber;
	}

	public void setGlobalINumber(Synonym globalINumber) {
		this.oGlobalINumber = globalINumber;
	}

	public Set getRedirectSet() {
		return this.oRedirectSet;
	}

	public void setRedirectSet(Set redirectSet) {
		this.oRedirectSet = redirectSet;
	}

	public void setRedirectsMap(Map redirectsMap) {
		this.oRedirectsMap = redirectsMap;
	}

	public Map getRedirectsMap() {
		return this.oRedirectsMap;
	}

	public void debug(String prefix) {
		oLogger.debug(prefix + " : Synonym (" + id + ", " + sSynonym + ", "
				+ oSubscriber.getId() + ", " + oRedirectSet.size() + ", "
				+ state + ")\n");
	}

}